﻿using System.Collections.Generic;

namespace N2.Commerce.Items
{
	using Details;
	
	[Definition(
		"Cart",
		"cart",
		"Generic container for user's selection",
		"User selection container", 30)]
	[WithEditableName, WithEditableTitle]
	public class Cart: ContentItem, ICart
	{
		public override string IconUrl {
			get { return Const.CommerceResourcePath + "UI/Img/35.png"; }
		}

		public IList<ContentItem> Items {
			get { return this.GetDetailCollection("Items", true).AsList<ContentItem>(); }
		}
	}
}
